﻿using Core;
using RI_Talisman;
using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Security.Cryptography;
using UnityEngine;
using Verse;
using Verse.Noise;
using static RimWorld.ColonistBar;

namespace WhoXiuXian
{
    public class HediffComp_WorkDriveHediff : HediffComp
    {
        public Pawn pawn => base.Pawn;
        Passion passionBefor;
        public override void CompPostMake()
        {
            passionBefor =pawn.skills.GetSkill(SkillDefOf.Crafting).passion;
            pawn.skills.GetSkill(SkillDefOf.Crafting).passion=Passion.Major;
            base.CompPostMake();
        }
        public override void CompPostPostRemoved()
        {
            pawn.skills.GetSkill(SkillDefOf.Crafting).passion = passionBefor;
            base.CompPostPostRemoved();
        }
        public override void CompExposeData()
        {
            base.CompExposeData();
        }

    }
}